package com.zengdw.easytext.flesch;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.zengdw.easytext.api.Analyzer;

/**
 * @Author: zengd
 * @Date: 2020/7/13 9:54
 * @Version: 1.0
 */
public class FleschKincaid implements Analyzer {
    @Override
    public String getName() {
        return "flesch";
    }

    @Override
    public double analyze() {
        System.out.println("analysis 50.12");
        ObjectMapper mapper = new ObjectMapper();
        try {
            String s = mapper.writeValueAsString("22222");
            System.out.println(s);
        } catch (JsonProcessingException e) {
            e.printStackTrace();
        }
        return 50.12;
    }
}
